<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  
<html>
  <head>
  <base target="_self"/>
  
  <title>门户信息查看页面</title>
  	<meta http-equiv="X-UA-Compatible" content="IE=7" />
    <link rel="stylesheet" type="text/css" href="<%=path %>/web/style/layout.css" />
    <script type="text/javascript" src="<%=path %>/jqGrid/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<%=path %>/js/jquery.validate.min.js"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/js/DatePicker/WdatePicker.js" defer="defer"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/js_css_image/js/base/jquery.form.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath() %>/js/additional-methods.js"></script>
    <c:if test="${requestScope.message!=null}">
		<script type="text/javascript">
 	 		     alert('<c:out value="${requestScope.message}"></c:out>');
 	 		     window.close();
 		</script>
	</c:if>
    <script type="text/javascript">
    var api = frameElement.api, W = api.opener;
    $().ready(function() {
		$('#closeBtn').click(function(){
        		api.close();
         });
	});

   </script>
 	<style type="text/css">
 		body{
 			background:#ffffff; background-image:url(images/);
 		}
   		html{
		    overflow-x: hidden;
			overflow-y: hidden;
		}  	
		.formTableNew textarea{border: 1px solid #999;padding: 5px;width: 575px;-moz-border-radius: 3px;border-radius: 3px;margin-bottom: 5px;color: #666;background: url(../images/input_bg.gif) repeat-x top;}
   </style>
  </head>
  
  <body>
  	<form action="" id="pageFrom" name="" method="post">
  		<table width="100%" border="0" align="center" cellpadding="5" cellspacing="5" class="formTableNew">
  		<input type="hidden" id="id" name="id" value="${param.pId}"  style="width:340px"/>
		  <tr>
		    <td align="right">门户名称：</td>
		    <td align="left">
			    <div class="div">
					<input type="text" id="portletName" name="portletName" disabled value="${lpi.portletName}"  style="width:200px"/>
					<img src="<%=request.getContextPath() %>/images/xh.png"></img>
				</div>
		    </td>
		    <td align="right">门户URL：</td>
		    <td> 
			    <div class="div">
					<input type="text" id="portletUrl" name="portletUrl" disabled value="${lpi.portletUrl}" style="width:200px"/>
				</div>
		    </td>
		  </tr>
		  <tr>
		    <td align="right">执行类型：</td>
		    <td> 
			    <div class="div">
					<input type="text" id="executeType" name="executeType" disabled value="${lpi.executeType}" style="width:200px"/>
				</div>
		    </td>
		    <td align="right">门户SQL语句：</td>
		    <td> 
			    <div class="div">
					<input type="text" id="portletSql" name="portletSql" disabled value="${lpi.portletSql}" style="width:200px"/>
				</div>
		    </td>
		  </tr>
		 <tr>
		    <td align="right">状态：</td>
		    <td> 
				 <div class="div">
					<select id="state" name="state" style="width: 220px;" disabled>
						<option value="${lpi.state}">${lpi.state}</option>
					</select>
				</div>
		    </td>
		 
		    <td align="right">门户高度：</td>
		    <td> 
			    <div class="div">
					<input type="text" id="portletHeight" name="portletHeight" disabled value="${lpi.portletHeight}" style="width:200px"/>
				</div>
		    </td>
		    
		  </tr>
		    <tr>
		    <td align="right">显示位置：</td>
		    <td> 
			    <div class="div">
					<select id="location" disabled name="location" style="width: 220px;">
						<option value="0" <c:if test="${lpi.location==0}">selected</c:if>>整行</option>
						<option value="1" <c:if test="${lpi.location==1}">selected</c:if>>左侧</option>
						<option value="2" <c:if test="${lpi.location==2}">selected</c:if>>右侧</option>	</select>
				</div>
		    </td>
		 
		    <td align="right">排序字段：</td>
		    <td> 
			    <div class="div">
					<input type="text" id="portletSort" disabled name="portletSort" value="${lpi.portletSort}" style="width:200px"/>
				</div>
		    </td>
		  </tr>
		  <tr>
		    <td align="right" >备注：</td>
		    <td colspan="4" >
		    	<div class="div">
					<textarea rows="3" cols="160" id="remarks" disabled name="remarks">${lpi.remarks}</textarea>
				</div>	
		    </td>
		  </tr>
		  <tr>
		    <td align="center" colspan="4" >
		    	<input type="hidden" id="saveBtn" value="保 存" class="form_bt_orange" />
		      	<input type="button" id="closeBtn" value="取 消" class="form_bt_grey"  />
		    </td>
		  </tr>
		</table>
	</form>
  </body>
</html>
